/* ===========================================
   管理端桌面端优化样式
   =========================================== */

/* 桌面端侧边栏优化 */
.sidebar {
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar:hover {
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
}

.sidebar a {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a:hover {
    transform: translateX(5px);
    background-color: rgba(255,255,255,0.15);
}

/* 桌面端导航栏优化 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 桌面端内容区域优化 */
.content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 64px);
}

.content-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* 桌面端卡片优化 */
.metric-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.metric-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

/* 桌面端图表容器优化 */
.chart-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 桌面端快捷操作优化 */
.action-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.action-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.action-icon {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 桌面端按钮优化 */
.time-filter-btn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.time-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.time-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 桌面端表格优化 */
.table-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.table-container table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-container th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.table-container tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* 桌面端表单优化 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    border-color: var(--primary-color);
}

/* 桌面端滚动条优化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5276 100%);
}

/* 桌面端动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 桌面端加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 桌面端工具提示优化 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: var(--font-size-sm);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 桌面端键盘快捷键提示 */
.keyboard-shortcut {
    display: inline-block;
    background: var(--light-color);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 2px 6px;
    font-size: var(--font-size-sm);
    font-family: monospace;
    margin-left: var(--spacing-sm);
    color: var(--gray-color);
}

/* 桌面端分页优化 */
.pagination {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.pagination button {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 桌面端模态框优化 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 桌面端通知优化 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--info-color);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

/* 桌面端搜索优化 */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) 40px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-base);
    color: var(--gray-color);
}

/* 桌面端标签页优化 */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: var(--spacing-xl);
}

.tab {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* 桌面端数据可视化优化 */
.data-visualization {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.data-visualization h3 {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--dark-color);
    font-weight: 600;
}

/* 桌面端性能优化提示 */
.performance-hint {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-size: var(--font-size-sm);
    color: var(--primary-dark);
}

.performance-hint::before {
    content: '💡';
    margin-right: var(--spacing-sm);
}